import {v4 as uuidv4} from 'uuid';
export const getUUID = ()=>{
    //先从本地存储获取 看看是否需要重新创建
    let uuid_token = localStorage.getItem('UUIDTOKEN');
    //若干没有就生产
    if (!uuid_token) {
        uuid_token = uuidv4();
        //本地存储
        localStorage.setItem('UUIDTOKEN',uuid_token);
    }
    return uuid_token;
}